package com.itheima.a01oopextendsdemo1;

public class Test {
    public static void main(String[] args) {
        //创建哈士奇对象
        Husky h = new Husky();
        h.eat();
        h.drink();
        h.watchHouse();
        h.BreakHome();


        //创建泰迪对象
        Teddy t = new Teddy();
        t.eat();
        t.drink();
        t.watchHouse();
        t.touch();

        //创建布偶猫对象
        Ragdoll r = new Ragdoll();
        r.eat();
        r.drink();
        r.catchMouse();

        //创建狸花猫对象
        LiHua l = new LiHua();
        l.eat();
        l.drink();
        l.catchMouse();

        //创建狗对象
        Dog d = new Dog();
        d.eat();
        d.drink();
        d.watchHouse();

    }
}
